﻿using AutoMapper;
using Stee.CAP8.Saga.Sample.Order.DTO;
using Stee.CAP8.Saga.Sample.Order.DTO.Requests;
using Stee.CAP8.Saga.Sample.Order.DTO.Response;

namespace Stee.CAP8.Saga.Sample.Order.Mappings
{
    public class OrderProfile : Profile
    {
        public OrderProfile()
        {
            CreateMap<Persistence.Entities.Order, OrderDTO>();
            CreateMap<OrderCreateRequest, Persistence.Entities.Order>();
            CreateMap(typeof(DataResponseObject<>), typeof(DataResponseObject<>));
        }
    }
}
